/**
 * 
 */
package design_pattern.flyweight.simple;

/**
 * @author linzq
 * 
 */
public class Client {
  public static void main(String[] args) {
    FlyweightFactory f = new FlyweightFactory();
    Flyweight fly = f.factory(new Character('a'));
    fly.operation("First call");

    fly = f.factory(new Character('b'));
    fly.operation("Second call");
    fly = f.factory(new Character('a'));
    fly.operation("Third call");

    f.checkFlyweight();
  }
}
